package study07;

public class Student1 {
    private String name;
    private int age;

    public Student1() {
        System.out.println("无参的构造方法");
    }

    public Student1(String name) {
        this.name = name;
        System.out.println(name + "参数的构造方法");
    }

    public Student1(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println(age + name + "参数的构造方法");
    }
}